﻿// Defines the Break class
define([
    'Xjs/core/util',
    'Xjs/ui/HtmlRenderer'
],
function (util, HtmlRenderer) {
    'use strict';

    var type = 'break',
    Break = Xjs.getType(type);

    if (Break) { // It has been already loaded
        return Break;
    }

    // A simple break tag
    Break = util.define({
        mixins: [
            HtmlRenderer
        ],
        construct: function (conf) {
            HtmlRenderer.prototype.initialize.call(this, conf);
        },
        type: type,
        tag: 'br',
        requiresId: false,
        toString: function () {
            return this.type + ' id:[not set]';
        }
    });

    Xjs.registerType(Break);

    return Break;
});